<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<%--
  ~ Copyright (c) 2017 22420103@QQ.COM 版权所有
  ~
  --%>
<c:if test="${goldDetailList == null or fn:length(goldDetailList)<=0 }">
<div class="alert alert-warning">
	<button type="button" class="close" data-dismiss="alert">
		<i class="ace-icon fa fa-times"></i>
	</button>
	无明细数据!
	<br>
</div>
</c:if>
<c:if test="${goldDetailList != null and fn:length(goldDetailList)>0}">

<div class="col-xs-12" style="margin-top:5px;">
	<table id="simple-table" class="table table-bordered table-hover">
		<thead>
			<tr>
				<th class="center">序号</th>
				<th class="center">用户ID</th>
				<th class="center">明细类型</th>
				<th class="center">数量</th>
				<th class="center">提成来源</th>
				<th class="center">游戏名称</th>
				<th class="center">时间</th>


			</tr>
		</thead>
		
		<tbody>
			<c:forEach items="${goldDetailList}" var="item" varStatus="i">
		       <tr>
					<td class="center">
						${i.index + 1}
					</td>
				   <td class="center">${item.userId }</td>
				   <td class="center">
				   		<c:if test="${item.busiType == 1}">
							<c:if test="${item.amt > 0}">
								充值
							</c:if>
							<c:if test="${item.amt < 0}">
								充值
							</c:if>
						</c:if>
						<c:if test="${item.busiType == 2}">
							提成
						</c:if>
						<c:if test="${item.busiType == 3}">
							游戏
						</c:if>
						<c:if test="${item.busiType == 4}">
							赠送
						</c:if>
				   </td>
				   <td class="center">${item.amt }</td>
				   <td class="center">${item.sourceUserId }</td>				
				   <td class="center">${item.gameName }</td>
				   <td class="center">${item.crtDate }</td>
				</tr>
		    </c:forEach>

			</tbody>
		</table>
		<%@include file="../paging.jsp" %>
</div>

</c:if>
